package com.starry.module.member.core.member.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.starry.db.core.entity.TenantBaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 会员用户-实体
 * @author xiaoke
 */
@Schema(description = "会员用户实体")
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("member_user")
public class MemberUser extends TenantBaseEntity {

    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;
    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;
    /**
     * 昵称
     */
    @Schema(description = "昵称")
    private String name;
    /**
     * 用户头像
     */
    @Schema(description = "用户头像")
    private String avatar;
    /**
     * 手机号码
     */
    @Schema(description = "手机号码")
    private String phone;
    /**
     * 生日
     */
    @Schema(description = "生日")
    private Date birthday;
    /**
     * 简介
     */
    @Schema(description = "简介")
    private String introduction;
    /**
     * 状态(1 正常 0 禁用)
     */
    @Schema(description = "状态(1 正常 0 禁用)")
    private Integer status;
    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;
    /**
     * ip属地
     */
    @Schema(description = "ip属地")
    private String ipCity;
    /**
     * 注册时间
     */
    @Schema(description = "注册时间")
    private LocalDateTime registerTime;
}

